package com.gitee.huanminabc.db_freedom.base;

import lombok.Getter;

/**
 * 解决可变参数传递不同类的Lambda表达式 ,识别不了的办法
 * @param <T>
 * @param <R>
 */
@Getter
public final class SqlPick<T, R> {
    private SqlFun<T, R> function;
    public  static  <T, R> SqlPick<T, R> of(SqlFun<T, R> function){
        SqlPick<T, R> lambdaPick = new SqlPick<>();
        lambdaPick.function=function;
        return lambdaPick;
    }
}
